package switchviz.graphic.signal;

public class SimpleSignalDataModel extends BasicSignalDataModel
{
	private String _alias = "sysDescr";
	private int _port = 0;
	private int _portrequired = 0;
	private float _offset = 0;
	private float _coefficient = 1;
	private boolean _difference = true;
	private boolean _logarithm = false;
	
	public static final int PORTREQUIRED_UNKNOWN = 0;
	public static final int PORTREQUIRED_NO = 1;
	public static final int PORTREQUIRED_YES = 2;
	
	public String getAlias() 
	{
		return _alias;
	}

	public void setAlias(String alias) 
	{
		this._alias = alias;
	}
	
	public SimpleSignalDataModel()
	{
		this.setType(BasicSignalDataModel.TYPESIMPLE);
	}

	public float getOffset() 
	{
		return _offset;
	}

	public void setOffset(float offset) 
	{
		this._offset = offset;
	}

	public float getCoefficient() 
	{
		return _coefficient;
	}

	public void setCoefficient(float coefficient) 
	{
		this._coefficient = coefficient;
	}

	public int getPort() 
	{
		return _port;
	}

	public void setPort(int port) 
	{
		this._port = port;
	}

	public int getPortrequired() 
	{
		return _portrequired;
	}

	public void setPortrequired(int portrequired) 
	{
		this._portrequired = portrequired;
	}

	public boolean isLogarithm() 
	{
		return _logarithm;
	}

	public void setLogarithm(boolean logarithm) 
	{
		this._logarithm = logarithm;
	}

	public boolean isDifference() 
	{
		return _difference;
	}

	public void setDifference(boolean difference) 
	{
		this._difference = difference;
	}
}
